package site.yunnong.atvris.dao.domain;

import java.io.Serializable;
import java.time.LocalDateTime;

public class UserMessage implements Serializable {
    private Long id;

    private Long fromUuid;

    private Long toUuid;

    private Integer type;

    private Integer hasRead;

    private String content;

    private LocalDateTime sendTime;

    private static final long serialVersionUID = 1L;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getFromUuid() {
        return fromUuid;
    }

    public void setFromUuid(Long fromUuid) {
        this.fromUuid = fromUuid;
    }

    public Long getToUuid() {
        return toUuid;
    }

    public void setToUuid(Long toUuid) {
        this.toUuid = toUuid;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Integer getHasRead() {
        return hasRead;
    }

    public void setHasRead(Integer hasRead) {
        this.hasRead = hasRead;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public LocalDateTime getSendTime() {
        return sendTime;
    }

    public void setSendTime(LocalDateTime sendTime) {
        this.sendTime = sendTime;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", fromUuid=").append(fromUuid);
        sb.append(", toUuid=").append(toUuid);
        sb.append(", type=").append(type);
        sb.append(", hasRead=").append(hasRead);
        sb.append(", content=").append(content);
        sb.append(", sendTime=").append(sendTime);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}